/*
 * FileName: SparkHandler.java
 * Author:   zzw
 * Date:     2018年05月24日
 * Description:
 */
package com.chezhibao.handler;

import com.chezhibao.util.SparkUtil;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * 〈〉<br>
 * 〈〉
 *
 * @author zzw
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本]（可选）
 */
@Component
public class SparkHandler implements CommandLineRunner {

    @Autowired
    private ObjectMapper objectMapper;

    @Override
    public void run(String... args) throws Exception {
        SparkUtil.handleHBase(objectMapper);
    }
}
